-
Notifications
You must be signed in to change notification settings - Fork 9
Add Makefile rules to create a release tarball #92
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I also think we should drop all the sysvinit stuff and clean up a lot more before we merge this.
| # bash will eat your spaces, so let's array. see http://mywiki.wooledge.org/BashFAQ/050 for more fun. | ||
| params=("--user" "puppet" "--group" "puppet" "--chdir" "$dir" "--realname" "puppetserver" "--operating-system" "$os" "--name" "openvox-server" "--package-version" "8.11.0" "--release" "1" "--platform-version" "8") | ||
| if [ -n "$os_version" ]; then params+=("--os-version" "$os_version"); fi | ||
| if [ -n "$os_dist" ]; then params+=("--dist" "$os_dist"); fi | ||
|
|
||
| params+=('--description' "$(printf "Vox Pupuli puppetserver\nContains: OpenVox Server (puppetlabs/puppetserver 8.11.0,org.clojure/clojure 1.11.2,org.bouncycastle/bcpkix-jdk18on 1.78.1,puppetlabs/jruby-utils 5.2.0,puppetlabs/puppetserver 8.11.0,com.puppetlabs/trapperkeeper-webserver-jetty10 1.0.18,puppetlabs/trapperkeeper-metrics 2.0.4)")") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this part should be templated somehow
| params+=('--replaces' "'puppetserver',''") | ||
|
|
||
|
|
||
| params+=('--create-dir' '/opt/puppetlabs/server/data/puppetserver/jars') | ||
| params+=('--create-dir' '/opt/puppetlabs/server/data/puppetserver/yaml') | ||
|
|
||
|
|
||
|
|
||
| if [[ "$os" = 'el' || "$os" = 'sles' || "$os" = 'fedora' || "$os" = 'redhatfips' || "$os" = 'amazon' ]]; then | ||
| # pull in rpm dependencies | ||
| params+=("--additional-dependency") | ||
| params+=("openvox-agent >= 8.21.1") | ||
| # get rpm install trigger scripts | ||
| # get rpm upgrade trigger scripts | ||
| : # Need something in case there are no additional dependencies | ||
| else | ||
| # if we aren't an rpm, pull in deb dependencies | ||
| params+=("--additional-dependency") | ||
| params+=("openvox-agent (>= 8.21.1)") | ||
| : # Need something in case there are no additional dependencies | ||
| fi |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This part can probably be folded into fpm.rb.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think this file is really needed in the tarball
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know why this file is here, but it's in the tarball now.
| install -d "${DESTDIR}${app_prefix}/share/doc/puppetserver-8.11.0" | ||
| cp -a ext/docs "${DESTDIR}${app_prefix}/share/doc/puppetserver-8.11.0" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here it also has the version number so some templating. Though I'm not sure if the docs code path is really used.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This also should be generated somehow
This is something we discussed earlier. It is an attempt to get rid of ezbake.
The idea is that you run
make distto create the release tarball. This can then be consumed by packaging to build the various RPMs and Debian packages.For now I just took the files from the openvox-server 8.11.0 release tarball and added it together with a
Makefile. That produces a tarball.However, this isn't consumed by packaging now and not hooked into CI and release flows. I don't know how to do that well, but this is the start.